package com.yuhanginfo.modules.web.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.WebDataEntity;


/**
 * 注册用户门店关联Entity
 * @author lvls
 * @version 2017-09-27
 */
public class WebUserStore extends WebDataEntity<WebUserStore> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 用户id
	private String storeCode;		// 门店号
	private String storeName;
	
	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}

	public WebUserStore() {
		super();
	}

	public WebUserStore(String id){
		super(id);
	}

	@NotNull(message="用户id不能为空")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=1, max=30, message="门店号长度必须介于 1 和 30 之间")
	public String getStoreCode() {
		return storeCode;
	}

	public void setStoreCode(String storeCode) {
		this.storeCode = storeCode;
	}
	
}